package com.tianji.learning.service;

import com.tianji.learning.entity.po.PointsBoardSeason;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.entity.vo.PointsBoardSeasonVO;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lemon
 */
public interface IPointsBoardSeasonService extends IService<PointsBoardSeason> {

    /**
     * 历史赛季信息
     *
     * @return
     */
    List<PointsBoardSeasonVO> queryAllSeason();

    /**
     * 根据时间查询赛季id
     *
     * @param time
     * @return
     */
    Integer querySeasonByTime(LocalDate time);

    /**
     * 根据时间查询赛季
     *
     * @param now
     * @return
     */
    PointsBoardSeason queryPointsSeasonByTime(LocalDate now);

    /**
     * 添加新的赛季
     *
     * @param boardSeason
     */
    void addNewSeason(PointsBoardSeason boardSeason);

    /**
     * 根据名称查询赛季
     *
     * @param name
     * @return
     */
    PointsBoardSeason queryPointsSeasonByName(String name);
}
